package site.brood.mall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableDiscoveryClient  //在nacos 服务端注册，允许其它客户端发现此服务
@EnableFeignClients(basePackages = "site.brood.mall.feign")     //开启feign客户端，basePackages对应放feign服务的包名
@MapperScan("site.brood.mall.mapper")    //mybatis-plus的mapper所在包
@SpringBootApplication(scanBasePackages = "site.brood")
public class MallApp {
    public static void main(String[] args) {
        SpringApplication.run(MallApp.class, args);
        System.out.println("---------Druid监控入口---------\n/druid");
        System.out.println("---------Swagger入口---------\n/swagger-ui");
    }
}
